import request from '@/utils/request'

export function findAllAccount(data,params) {
  return request({
    url: '/account/findAllAccount',
    method: 'post',
    data,
    params
  })
}

export function findAccountParentDept(params) {
  return request({
    url: '/account/findAccountParentDept',
    method: 'get',
    params
  })
}

export function findAccountChildrenDept(params) {
  return request({
    url: '/account/findAccountChildrenDept',
    method: 'get',
    params
  })
}

export function findEmpByDept(params) {
  return request({
    url: '/account/findEmpByDept',
    method: 'get',
    params
  })
}

export function findRoles(params) {
  return request({
    url: '/account/findRoles',
    method: 'get',
    params
  })
}

export function findAccount(params) {
  return request({
    url: '/account/findAccount',
    method: 'get',
    params
  })
}

export function addAccount(data) {
  return request({
    url: '/account/addAccount',
    method: 'post',
    data
  })
}

export function updateAccount(data) {
  return request({
    url: '/account/updateAccount',
    method: 'post',
    data
  })
}


export function deviceTypeDelete(data) {
  return request({
    url: '/assetManagement/deviceTypeDelete',
    method: 'post',
    data
  })
}

export function resetPassword(data) {
  return request({
    url: '/account/resetPassword',
    method: 'post',
    data
  })
}
